<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script>
var jsTestIsAsync = true;
description('Test that window.open sets the correct opener when the calling context != window');
if (window.testRunner)
  testRunner.setPopupBlockingEnabled(false);
function passed() {
  testPassed('passed called on "this" argument of window.open');
  finishJSTest();
}
function failed() {
  testFailed('passed was called on calling context of window.open =(');
  finishJSTest();
}
</script>
</head>
<body>
<iframe src="resources/window-open-with-different-active-and-opener-windows-subframe.html"></iframe>
</body>
</html>
